package com.yunji.hushuang.hsproxy;

import com.yunji.hushuang.common.HomeworkServiceImpl;

/**
 * 基于继承的动态代理
 *
 * @author hushuang
 * @since 2019/10/15
 */
public class HsProxyTest {

    public static void main(String[] args) {
        HomeworkServiceImpl proxy2 = HsProxy.newProxyInstance(
                new HsClassLoader(), HomeworkServiceImpl.class, new HsInvocationHandler(new HomeworkServiceImpl())
        );
        proxy2.doHomework();
    }
}
